package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 商品实体类
 * @author Zchaolin
 * @version 1.0
 * @created 29-7月-2022 9:34:37
 */
@TableName("t_product")
public class ProductBean {

	/**
	 * 编号
	 */
	@TableId("pk_productId")
	private String id;
	/**
	 * 名字
	 */
	@TableField("p_name")
	private String name;
	/**
	 * 品牌
	 */
	@TableField("p_brand")
	private String brand;
	/**
	 * 类别
	 */
	@TableField("p_type")
	private String type;
	/**
	 * 数量
	 */
	@TableField("p_num")
	private Integer num;
	/**
	 * 图片路径
	 */
	@TableField("p_imgPath")
	private String imgPath;
	/**
	 * 采购价
	 */
	@TableField("p_buyPrice")
	private Integer buyPrice;
	/**
	 * 销售价
	 */
	@TableField("p_sellPrice")
	private Integer sellPrice;

	public ProductBean(){

	}

	public ProductBean(String id, String name, String brand, String type, Integer num, String imgPath, Integer buyPrice, Integer sellPrice) {
		this.id = id;
		this.name = name;
		this.brand = brand;
		this.type = type;
		this.num = num;
		this.imgPath = imgPath;
		this.buyPrice = buyPrice;
		this.sellPrice = sellPrice;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public Integer getBuyPrice() {
		return buyPrice;
	}

	public void setBuyPrice(Integer buyPrice) {
		this.buyPrice = buyPrice;
	}

	public Integer getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(Integer sellPrice) {
		this.sellPrice = sellPrice;
	}
}